package com.weiz.service;

import com.weiz.dto.LoginUser;
import org.springframework.security.core.Authentication;

public interface UserService {
    /**
     * 注册用户
     * @param loginUser
     * @return
     */
    Boolean register(LoginUser loginUser);

    /**
     *
     * @param username
     * @param password
     * @return
     */
    Authentication authenticate(String username, String password);
}
